﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit_download.aspx.cs"
    Inherits="Eis51.Web.Admin.DownLoadFileMgnt.edit_download" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>NewNews</title>
    <link href="../../css/cssCn1.css" type="text/css" rel="stylesheet">
    <link href="../../css/cssCn.css" type="text/css" rel="stylesheet">

    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        function checkinput() {
            if ($.trim($('#txtTitle').val()) == '') {
                alert("请输入标题");
                $('#txtTitle').focus();
                return false;
            }

            if ($.trim($('#ddlType').val()) == '') {
                alert("请选择类型");
                $('#ddlType').focus();
                return false;
            }
            
            if ($('#FileUpload1').val() == ""
                && (document.getElementById('lnkFile1') == '' 
                    || document.getElementById('lnkFile1') == null
                   )) {
                alert("请选择上传文件！");
                return false;
            }

//            if ($('#fuFileLogo').val() == ""
//                && (document.getElementById('lnkLogo') == ''
//                    || document.getElementById('lnkLogo') == null
//                   )) {
//                alert("请选择Logo显示！");
//                return false;
//            }
//            

        }

    </script>

</head>
<body ms_positioning="GridLayout">
    <form id="Form1" method="post" runat="server">
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td>
                <div class="div_subtitle">
                    当前位置：首页图片管理<span class="arrow_subtitle">&gt;</span>首页图片编辑</div>
            </td>
        </tr>
    </table>
    <table id="tb_content" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td>
                    <table id="tb_content" cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                <table class="tb_input" id="queryPane" cellspacing="1" cellpadding="0" width="100%"
                                    align="center" bgcolor="#ffffff" border="0">
                                    <tr>
                                        <td colspan="2">
                                            <img src="../../Img/showtoc.gif">
                                            &nbsp;首页图片编辑
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td_title" width="15%">
                                            标题<font color="red">*</font>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTitle" runat="server" Width="424px"></asp:TextBox>
                                        </td>
                                    </tr>
                                     <tr>
                                        <td class="td_title" width="15%">
                                            显示顺序
                                        </td>
                                        <td>                                            
                                                <asp:TextBox ID="txtShowIdx" runat="server" Width="50px"></asp:TextBox>值大的排在前面
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td_title" width="15%">
                                            位置模块<font color="red">*</font>
                                        </td>
                                        <td>
                                              <asp:DropDownList Width="120" ID="ddlType" runat="server" 
                                                  AppendDataBoundItems="true" AutoPostBack="True" 
                                                  onselectedindexchanged="ddlType_SelectedIndexChanged">
                                              <asp:ListItem Text ="产品" Value="1"></asp:ListItem>
                                                <asp:ListItem Text ="客户案例" Value="2"></asp:ListItem>
                                                <asp:ListItem Text ="购买信息" Value="3"></asp:ListItem>                                                
                                                <asp:ListItem Text ="公司新闻" Value="4"></asp:ListItem>
                                                <asp:ListItem Text ="市场活动" Value="5"></asp:ListItem>
                                    </asp:DropDownList>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                                              对应对象:<asp:DropDownList ID="ddlPid" runat="server" Width="120">
                                              <asp:ListItem Text ="请选择" Value=""></asp:ListItem>
                                    </asp:DropDownList>
                                              </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td_title" width="15%">
                                            上传显示图片<font color="red">*</font>
                                        </td>
                                        <td>
                                            <asp:FileUpload ID="fuFileLogo" runat="server" /> 固定在/UploadFile/|/File/|FileLogo|
                                            <hr />
                                            <asp:HyperLink ID="lnkLogo" runat="server"></asp:HyperLink> &nbsp;<asp:Button ID="btnDelLogo"
                                                runat="server" Text="删除上传文件" onclick="btnDelLogo_Click"   />
                                        
                                        </td>
                                    </tr>
                                    
                                   <%-- <tr>
                                        <td class="td_title" width="15%">
                                            首页图片文件<font color="red">*</font>
                                        </td>
                                        <td>
                                            <asp:FileUpload ID="FileUpload1" runat="server" /> 固定在/UploadFile/|Createby|/File/|File_path1|
                                            <hr />
                                            <asp:HyperLink ID="lnkFile1" runat="server"></asp:HyperLink> &nbsp;<asp:Button ID="btnDelFile"
                                                runat="server" Text="删除上传文件" onclick="btnDelFile_Click" />
                                        
                                        </td>
                                    </tr>--%>
                                    <tr>
                                        <td class="td_title" width="15%">
                                            简述
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtBrief" runat="server" Height="100px" TextMode="MultiLine" Width="424px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                                <table width="100%">
                                    <tr>
                                        <td align="right" width="100%">
                                            <asp:Button ID="btnSave" runat="server" CssClass="Button" Text="保存" OnClick="btnSave_Click"
                                                OnClientClick="return checkinput()"></asp:Button><asp:Button ID="btnReturn" runat="server"
                                                    CssClass="Button" Text="返回" OnClick="btnReturn_Click"></asp:Button>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
